Skip to content

Conversation

@hgwood
Copy link
Contributor

@hgwood hgwood commented Jun 2, 2016

See this discussion in gulpjs/vinyl-fs#168.

Ping @phated.

Modification in package.json is explained here: gotwarlost/istanbul#90.

index.js Outdated
return typeof value === type;
}
if (typeof type === 'function') {
return Boolean(type(value));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefer !!type(value) to covert to boolean

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

@phated
Copy link
Member

phated commented Jun 6, 2016

A few comments

@phated
Copy link
Member

phated commented Jun 7, 2016

I found a missed case that wasn't handled. Adding tests and fix now that I'll land in the merge. What do you think about adding a .date() convenience method since it is needed in vinyl-fs

@phated phated merged commit b71ac77 into gulpjs:master Jun 7, 2016
@phated
Copy link
Member

phated commented Jun 7, 2016

Ref c458507

phated pushed a commit that referenced this pull request Jun 7, 2016
…#1)

* make npm run cover compatible with Windows

* accept function or array as type

* improve documentation

* replace Boolean by double-bang for coercion
@phated
Copy link
Member

phated commented Jun 7, 2016

Published as 1.1.0 - Awesome work!

@hgwood
Copy link
Contributor Author

hgwood commented Jun 8, 2016

@phated .date() sounds good. :)

@hgwood hgwood mentioned this pull request Jun 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants